package com.tc.dispatch.gsservice.ejb;

import java.util.*;

import com.tc.dispatch.gsservice.exception.*;
import com.tc.dispatch.gsservice.model.*;
import javax.ejb.*;
import com.tc.dispatch.gsservice.action.*;
import com.tc.dispatch.gsalgorithm.spec.spec;
import com.tc.dispatch.gsservice.filter.GsFilter;

public interface GSServiceLocal
    extends javax.ejb.EJBLocalObject {




  public PeiFangPrice getPeiFangPrice(int fac, String ssign, int month1,
				      int year1) throws GSException;

  public HashMap getWeight();


  public void setWeight(HashMap hs);


  //public List getFinishedPro(String ssign, String spec, String plate) throws GSException;


  public DianDuPrice getDianDu(String wherestr) throws GSException;

  public void updateDianDu(DianDuPrice dd) throws GSException;

  public void removeDianDu(String plate) throws GSException;

  public List findDianDu(String wherestr) throws GSException;

  public String createDianDu(DianDuPrice dd) throws GSException;


















  public List getFinishedPro(Date date1, Date date2, String sort) throws GSException;

  public List getFinishedPro(String ssign, String spec, String plate,
			     Date date1, Date date2) throws GSException;






  public String createHuilv(ExRate exrate) throws GSException;

  public void updateHuilv(ExRate exrate) throws GSException;

  public void removeHuilv(String name) throws GSException;

  public List findHuilv(String wherestr) throws GSException;







  public int createProcessStep(ProcessStep ps) throws GSException;

  public void removeProcessStep(int id) throws GSException;

  public void updateProcessStep(ProcessStep ps) throws GSException;

  public List findProcessStep(String whereStr) throws GSException;

  public int createOrderSumMain(OrderSumMain osm) throws GSException;

  public void removeOrderSumMain(int id) throws GSException;

  public void updateOrderSumMain(OrderSumMain osm) throws GSException;

  public List findOrderSumMain(String whereStr) throws GSException;

  public int createOrderSumSub(OrderSumSub oss) throws GSException;

  public void removeOrderSumSub(int id) throws GSException;

  public void updateOrderSumSub(OrderSumSub oss) throws GSException;

  public List findOrderSumSub(String whereStr) throws GSException;

  public List findOrderSumSubByPages(int page, int pagePerNum) throws GSException;

  public List findOrderSumMainByPages(int page, int pagePerNum) throws GSException;

  public List findProcessStepByPages(int page, int pagePerNum) throws GSException;



  public OrderSumMain getERPKaimo(OrderSumMain osm) throws GSException;

  public OrderSumMain getERPMaopi(OrderSumMain osm) throws GSException;

  public List dealProcessList(List processList);

  public Float getYield(String whereStr, String ssign, String spec, String plate, int month1, int year1, int factory) throws GSException;

  public int getOSMTotalNum(String whereStr) throws GSException;

  public int getOSSTotalNum(String whereStr) throws GSException;

  public int getPSTotalNum(String whereStr) throws GSException;

  public List findDianDuPriceByPages(int start, int limit) throws GSException;

  public int getDDTotalNum(String whereStr) throws GSException;








  public String findERPKaiMo(String salesid) throws GSException;

  public List findOrderSumMainByPagesWhere(int page, int pagePerNum,
					   String whereStr) throws GSException;
  public int createWorkflowStepRelation(WorkflowStepRelation wsr) throws GSException;
  public void updateWorkflowStepRelation(WorkflowStepRelation wsr) throws GSException;
  public void removeWorkflowStepRelation(int id) throws GSException;
  public List findWorkflowStepRelation(String whereStr) throws GSException;
  public List findWorkflowStepRelationByPage(int start, int limit, String whereStr) throws GSException;
  public int getWSRtTotalNums(String whereStr) throws GSException;
  public boolean testSearchSql(String whereStr, String map, String workflow) throws GSException;
  public int createSpecType(SpecType stype) throws GSException;
  public void updateSpecType(SpecType stype) throws GSException;
  public void removeSpecType(int id) throws GSException;
  public List findSpecType(String whereStr) throws GSException;
  public int getSpecTypeTotalNums(String whereStr) throws GSException;
  public List findSpecTypeByPage(int start, int limit, String whereStr) throws GSException;
  public int createOutProcess(OutProcess oprocess) throws GSException;
  public void updateOutProcess(OutProcess oprocess) throws GSException;
  public void removeOutProcess(int id) throws GSException;
  public List findOutProcess(String whereStr) throws GSException;
  public int getOutProcessTotalNums(String whereStr) throws GSException;
  public List findOutProcessByPage(int start, int limit, String whereStr) throws GSException;
  public OutProcess getKnife(String specType, spec after, GsFilter gsf) throws GSException;
  public int createProcessFee(ProcessFee pfee) throws GSException;
  public void updateProcessFee(ProcessFee pfee) throws GSException;
  public void removeProcessFee(int id) throws GSException;
  public int getProcessFeeTotalNums(String whereStr) throws GSException;
  public List findProcessFeeByPage(int start, int limit, String whereStr) throws GSException;
  public ProcessFee getProcessFee(String whereStr, spec after) throws GSException;
  public int createProcessYield(ProcessYield pyield) throws GSException;
  public void updateProcessYield(ProcessYield pyield) throws GSException;
  public void removeProcessYield(int id) throws GSException;
  public int getProcessYieldTotalNums(String whereStr) throws GSException;
  public List findProcessYieldByPage(int start, int limit, String whereStr) throws GSException;
  public ProcessYield getProcessYield(String whereStr, String procs) throws GSException;
  public int createProcessName(ProcessName pname) throws GSException;
  public void updateProcessName(ProcessName pname) throws GSException;
  public void removeProcessName(int id) throws GSException;
  public int getProcessNameTotalNums(String whereStr) throws GSException;
  public List findProcessNameByPage(int start, int limit, String whereStr) throws GSException;
  public int createProcessArea(ProcessArea parea) throws GSException;
  public void updateProcessArea(ProcessArea parea) throws GSException;
  public void removeProcessArea(int id) throws GSException;
  public int getProcessAreaTotalNums(String whereStr) throws GSException;
  public List findProcessAreaByPage(int start, int limit, String whereStr) throws GSException;
  public int createProcessFlow(ProcessFlow pflow) throws GSException;
  public void updateProcessFlow(ProcessFlow pflow) throws GSException;
  public void removeProcessFlow(int id) throws GSException;
  public int getProcessFlowTotalNums(String whereStr) throws GSException;
  public List findProcessFlowByPage(int start, int limit, String whereStr) throws GSException;
  public void updateProcessGate(ProcessGate pgate) throws GSException;
  public int getProcessGateTotalNums(String whereStr) throws GSException;
  public List findProcessGateByPage(int start, int limit, String whereStr) throws GSException;
  public ProcessFlow getFlow(String spec) throws GSException;
  public List findOtherConstants(String whereStr) throws GSException;
  public List findOtherConstantsByPage(int start, int limit, String whereStr) throws GSException;
  public void updateOtherConstants(OtherConstants otherconstants) throws GSException;
  public int getOtherCosntantsTotalNum(String whereStr) throws GSException;
  public int createSsignDensity(SsignDensity sd) throws GSException;
  public void updateSsignDensity(SsignDensity sd) throws GSException;
  public void  removeSsignDensity(int id) throws GSException;
  public List findSsignDensityByPage(int start, int limit, String whereStr) throws GSException;
  public int getSsignDensityTotalNums(String whereStr) throws GSException;
  public List findSsignDensity(String whereStr) throws GSException;
  public List getProcessSpec(String transnum, String step, String map) throws GSException;
  public Float getProcessArea(String whereStr, spec after, spec beforeSpec) throws GSException;
  public List getErpKaiMoList(String transnum) throws GSException;
  public List findLikeSpec(String workflow, String map, String spec) throws GSException;
  public int createDefaultCheck(DefaultCheck dcheck) throws GSException;
  public void updateDefaultCheck(DefaultCheck dcheck) throws GSException;
  public void removeDefaultCheck(int id) throws GSException;
  public List findDefaultCheck(String whereStr) throws GSException;
  public List findDefaultCheckByPage(int start, int limit, String whereStr) throws GSException;
  public int getDefaultCheckTotalNums(String whereStr) throws GSException;
  public Float getDefaultCheck(String whereStr, String spec) throws GSException;
  public List getFactoryBySpec(String whereStr) throws GSException;
  public int createQianDaoYield(QianDaoYield qdy) throws GSException;
  public void removeQianDaoYield(int id) throws GSException;
  public void updateQianDaoYield(QianDaoYield qdy) throws GSException;
  public List findQianDaoYield(String whereStr) throws GSException;
  public List findQianDaoYieldByPages(int start, int limit, String whereStr) throws GSException;
  public int getQianDaoYieldTotalNums(String whereStr) throws GSException;
  public GSCalcAction getGSCalc();
  public List findProcessArea(String whereStr) throws GSException;
  public int createPeiFangPrice(PeiFangPrice pf) throws GSException;
  public void updatePeiFangPrice(PeiFangPrice pf) throws GSException;
  public List findPeiFangPrice(String whereStr) throws GSException;
  public List findPeiFangPriceByPages(String whereStr, int start, int limit) throws GSException;
  public int getPeiFangPriceTotalNums(String whereStr) throws GSException;
  public boolean storePeiFangPrice(String ssign, String factory, Float price, Date date1) throws GSException;
  public void removePeiFangPrice(int id) throws GSException;
  public boolean totalControl(Date dateFrom, Date dateTo) throws GSException;
  public void testLog();

  //public void removeCostSpecial(CostSpecial costsp)throws GSException;
}